package com.test.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.test.demo.entity.e.DataSourceProperties;

import java.util.List;

public interface DataSourceService extends IService<DataSourceProperties> {
    
    /**
     * 获取所有启用的数据源配置
     */
    List<DataSourceProperties> getAllEnabledDataSources();
    
    /**
     * 添加数据源
     */
    boolean addDataSource(DataSourceProperties properties);

    /**
     * 删除数据源
     */
    boolean removeDataSource(String key);

    /**
     * 测试数据源连接
     */
    boolean testConnection(DataSourceProperties properties);
} 